#ifndef READWRITE_TIF_H
#define READWRITE_TIF_H

#include <BReadWrite>

using namespace BWE;

class ReadWrite_tiff : public BReadWrite
{
public:
	ReadWrite_tiff();
	~ReadWrite_tiff();

	virtual void setOptions(const BString& options) override;
	virtual const BString& options() const override;

	virtual BObject* load(const BString& fileName) override;
	virtual bool load(const BString& fileName, BObject* object) override;
	virtual bool save(const BString& fileName, const BObject* object) const override;

	virtual BObject* read(const BBuffer& buffer) override;
	virtual bool read(const BBuffer& buffer, BObject* object) override;
	virtual bool write(BBuffer& buffer, const BObject* object) const override;

	virtual const BString& author() const;
	virtual const BString& version() const;
	virtual const BString& description() const;
	virtual const BString& message() const;

private:
	int				_compression;

	BString			_author;
	BString			_version;
	BString			_description;
	BString			_options;
	mutable BString	_message;
};

#endif